<?php
include_once './templates/header.php';

//`id`, `product_code`, `price`, `product`, `description`, `summary`, `product_image_url`, `category_id`, `status`, `active`

$pid = isset($_GET['pid']) ? $_GET['pid'] : 0;

if (!empty($pid)) {

    $result6 = mysql_query("SELECT * FROM `products` WHERE active = 1 AND product_id =" . $pid);
    
    if($result6 != FALSE) {
      while ($row6 = mysql_fetch_array($result6)) {
        $product_code = $row6['product_code'];
        $price = $row6['price'];
        $product = $row6['product'];
        $description = $row6['description'];
        $product_image_url = $row6['product_image_url'];
      }
    }
}
?>

<section>

    <div class="container">
	<h2 class="title text-center">Products</h2>
        <div class="row">
            <div class="col-sm-3">
<?php include_once './templates/left_sidebar.php'; ?>
            </div>

            <div class="col-sm-9 padding-right">
                <div class="product-details"><!--product-details-->
                    <div class="col-sm-5">
						
                        <div class="view-product">
                            <img src="admin/assets/product_images/<?php print $product_image_url; ?>" width="200px" height="200px" alt="" />

                        </div>

                    </div>
                    <div class="col-sm-7">

                        <div class="product-information"><!--/product-information-->
                            <img src="images/product-details/new.jpg" class="newarrival" alt="" />
                            <h2><?php print $product; ?></h2>
                            <p><strong>Product Code: <?php print $product_code; ?></strong></p>
                            
<!--                            <span>
                                <span>Rs. <?php //  print $price; ?></span>
                                <img src="images/product-details/rating.png" alt="" />
                            </span>-->
                            <p><?php print $description; ?></p>
<!--								<p><b>Availability:</b> In Stock</p>
                            <p><b>Condition:</b> New</p>
                            <p><b>Brand:</b> E-SHOPPER</p>
                            <a href=""><img src="images/product-details/share.png" class="share img-responsive"  alt="" /></a>-->
                        </div><!--/product-information-->
                    </div>
                </div><!--/product-details-->

            </div>
        </div>
    </div>
</section>
<?php
include_once './templates/footer_widget.php';
include_once './templates/footer.php';
?> 